package com.zkjl.protect_business.dto.businessType;

import com.zkjl.protect_business.entity.BusinessField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@ApiModel(description = "新增业务分类实体")
public class BusinessDTO {

    @ApiModelProperty(notes = "名称")
    @NotBlank(message = "名称不能为空")
    private String name;

    @ApiModelProperty(notes = "父级id")
    private String pid;

    @ApiModelProperty(notes = "是否隐藏 第二级业务需要隐藏")
    private Boolean invisible;

    @ApiModelProperty(notes = "是否可以存档")
    private Boolean isArchive;

    @ApiModelProperty(notes = "排序")
    private Integer sort;

    @ApiModelProperty(notes = "参与单位")
    private List<String> orgIds;

    @ApiModelProperty(notes = "路由")
    private String routing = "business";

    @ApiModelProperty(notes = "包含字段")
    private List<BusinessField> fields;

    @ApiModelProperty(notes = "单位字段名称")
    private String orgFieldName;

    @ApiModelProperty(notes = "身份证号字段名称")
    private String idCardFieldName;

    @ApiModelProperty(notes = "唯一标识 字段名称")
    private String uniqueFieldName;

    @ApiModelProperty(notes = "发生时间 字段")
    private String occurredTime;


}
